package com.itCar.base.api.tacticsPaymentDemo;

import com.itCar.base.config.result.ResultBody;
import org.springframework.stereotype.Component;

/**
 * @ClassName WxPay
 * @Description TODO 微信支付方式
 * @Author liuzhiguo
 * @Date 2024/9/18 9:15
 * @Version 1.0
 */
@Component
public class WxPay implements Pay {
    @Override
    public ResultBody pay(Integer amount) {
        System.out.println("微信支付" + amount * 0.98);
        return ResultBody.success("微信支付" + amount * 0.98);
    }
}